<?php echo Modules::run('common/header') ?>

	<!-- Begin page content -->
	<div class="container content-body">
		<div class="page-header">
  			<h1>My Account</h1>
		</div>

		<div id="message"></div>

			<?php
				$username = array(
					'name'	=> 'username',
					'id'	=> 'username',
					'value' => set_value('username',$username),
					'maxlength'	=> $this->config->item('username_max_length', 'tank_auth'),
				);

				$first_name = array(
					'name'	=> 'first_name',
					'id'	=> 'first_name',
					'value' => set_value('first_name', $first_name),
					'class' => 'input-xlarge',
				);

				$last_name = array(
					'name'	=> 'last_name',
					'id'	=> 'last_name',
					'value' => set_value('last_name', $last_name),
					'class' => 'input-xlarge',
				);
				
				$email = array(
					'name'	=> 'email',
					'id'	=> 'email',
					'value'	=> set_value('email', $email),
					'maxlength'	=> 80,
					'class' => 'input-xlarge',
					'disabled' => 'disabled'
				);

				$password = array(
					'name'	=> 'password',
					'id'	=> 'password',
					'value' => set_value('password'),
					'maxlength'	=> $this->config->item('password_max_length', 'tank_auth'),
				);
				$confirm_password = array(
					'name'	=> 'confirm_password',
					'id'	=> 'confirm_password',
					'value' => set_value('confirm_password'),
					'maxlength'	=> $this->config->item('password_max_length', 'tank_auth'),
				);
			?>

		<?php echo form_open($this->uri->uri_string(),'id="" class="form-horizontal"'); ?>

			<div class="control-group">
              	<label class="control-label" for="username">Username <span style="color: red;">*</span></label>
              <div class="controls">
                <?php echo form_input($username); ?> <?php echo form_error($username['name']); ?>
              </div>
            </div>		

			<hr>

			<div class="control-group">
              	<label class="control-label" for="password">Password <span style="color: red;">*</span></label>
              <div class="controls">
                <?php echo form_password($password); ?> <?php echo form_error($password['name']); ?>
              </div>
            </div>		

			<hr>

			<div class="control-group">
              	<label class="control-label" for="confirm_password">Confirm Password <span style="color: red;">*</span></label>
              <div class="controls">
                <?php echo form_password($confirm_password); ?> <?php echo form_error($confirm_password['name']); ?>
              </div>
            </div>		

			<hr>

			
			<div class="control-group">
              	<label class="control-label" for="title">Title <span style="color: red;">*</span></label>
              <div class="controls">
                <?php echo form_dropdown('title',$list_title, set_value('title', $title)); ?> <?php echo form_error('title'); ?>
              </div>
            </div>		

			<hr>

			<div class="control-group">
              	<label class="control-label" for="first_name">First Name <span style="color: red;">*</span></label>
              <div class="controls">
                <?php echo form_input($first_name); ?> <?php echo form_error($first_name['name']); ?>
              </div>
            </div>

	    	<hr>

	    	<div class="control-group">
              	<label class="control-label" for="last_name">Last Name <span style="color: red;">*</span></label>
              <div class="controls">
                <?php echo form_input($last_name); ?> <?php echo form_error($last_name['name']); ?>
              </div>
            </div>           
            
            <hr>

            <div class="control-group">
              	<label class="control-label" for="last_name">Email <span style="color: red;">*</span></label>
              <div class="controls">
                <?php echo form_input($email); ?>
              </div>
            </div>            

            <hr>

            <button type="submit" class="btn btn-primary">Submit</button> 

          <?php echo form_close(); ?>

	</div>

<?php echo Modules::run('common/footer') ?>